package com.zjc.app.api.sdk.utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;

public abstract class JsonUtils {

    private static final Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create();

    public static <T> T parse(String objStr, TypeToken<T> typeToken) {
        return gson.fromJson(objStr, typeToken.getType());
    }
}
